<?php

class Model_CartItem
{	
	protected $_itemId;
	/**
	 * @var itemType [e.g. Book, Video, Audio, etc]
	 */
	protected $_itemType;
	protected $_itemQuantity;
	
	public function __construct($id, $type, $qnty)
	{
		$this->_itemId = $id;
		$this->_itemType = "Model_" . $type;
		$this->_itemQuantity = $qnty;
	}
	
	public function getID(){
		return $this->_itemId;
	}
	
	public function getType(){
		return $this->_itemType;
	}
	
	public function getQuantity(){
		return $this->_itemQuantity;
	}
	
	public function setQuantity($qnty){
		$this->_itemQuantity = $qnty;
	}
	
	public function addQuantity($qnty){
		$this->_itemQuantity += $qnty;
	}
}